/*********************
* Author:Dzlua
* QQ:505544956
* time:2016/11/08
*/
#ifndef __EDUI_LINK_H__
#define __EDUI_LINK_H__

#include "Label.h"

EDUI_NAMESPACE_BEGIN

class EDUI_API Link : public Label
{
public:
    struct {
        Event1<Link*> click;
    } evt;
protected:
    Link();
    virtual ~Link();
public:
	static Link* GetInterface();
	virtual void Release();
    static Link* ToLink(Control* ctrl);
protected:
    virtual bool HandleMsg(Msg* msg);
    virtual void RenderText(IRender* render, const Rect* rc);

    virtual void DoEvent(EventType type, void* data1 = 0, void* data2 = 0);

    virtual void OnMouseIn();
    virtual void OnMouseOut();
protected:
    bool m_bUnderLine;
};

EDUI_NAMESPACE_END

#endif